MoEHelper

class MoEHelper

Deprecated

This class is deprecated since 12.0.00 and will be removed in 14.00.00

Replace with

import com.moengage.core.analytics.MoEAnalyticsHelper
MoEAnalyticsHelper

This class is deprecated since version 12.0.00 and will be removed in 14.00.00. Use MoEAnalyticsHelper instead.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Invalidates the existing sessions and user attributes and treats all actions performed by the user as a new user after this method is called

If the Application is doing a self registration for gcm token then invalidate the token on logout

Link copied to clipboard
fun setAlias(alias: Any)

Set an Alias to update the existing Unique Id Note: This API only accepts the below data-types:

Link copied to clipboard
fun setAppStatus(status: AppStatus)

This API tells the SDK whether it is a fresh install or an existing application was updated.

Link copied to clipboard
fun setBirthDate(birthDate: Date)

Helper method to set User BirthDate

Link copied to clipboard
fun setEmail(value: String)

Helper method to set user email

Link copied to clipboard
fun setFirstName(value: String)

Helper method to set User first Name

Link copied to clipboard
fun setFullName(value: String)

Helper method to set user full name

Link copied to clipboard
fun setGender(gender: UserGender)

Helper method to set user gender

Link copied to clipboard
fun setLastName(value: String)

Helper method to set User Last Name

Link copied to clipboard
fun setNumber(value: String)

Helper method to set User Number

Link copied to clipboard
fun setUniqueId(uniqueId: Any)

Set an Unique Identifier for the user.

Link copied to clipboard
fun setUserAttribute(attributeMap: Map<String, Any>)

Set the user attributes with the attributes specified in the HashMap

fun setUserAttribute(attributeName: String, attributeValue: Any)

Track a user attribute in the default instance.

Link copied to clipboard

Sets the given epoch time for the given user.

Link copied to clipboard
fun setUserAttributeISODate(attributeName: String, attributeValue: String)

Set a date type user attribute for the current user.

Link copied to clipboard
fun setUserLocation(lat: Double, lng: Double)

Track user location as a User Attribute

Link copied to clipboard

Tracks device locale.

Link copied to clipboard
fun trackEvent(eventName: String, properties: Properties)

Track user behaviour as events with properties.